<table class="table table-bordered text-center">
    <thead>
    </thead>
    <tbody>
        <tr>
            <td>选择</td>
            <td>订单编号</td>
            <td>称呼</td>
            <td>手机号码</td>
            <td>车牌号码</td>
            <td>总金额</td>
            <td>订单状态</td>
            <td>支付状态</td>
            <td>支付方式</td>
            <td>下单日期</td>
            <td>操作</td>
        </tr>
        {foreach name="orderList" item="item"}
        <tr>
            <td>
                <input class="i-checks" type="checkbox" value="{$item.order_id}" name="row_id">
            </td>
            <td>{$item.order_sn}</td>
            <td>{$item.consignee}</td>
            <td>{$item.mobile}</td>
            <td>{$item.car_number}</td>
            <td>{$item.total_amount}</td>
            <td>{$order_status[$item[order_status]]}</td>
            <td>{$pay_status[$item[pay_status]]}</td>
            <td>{$pay_code[$item[pay_code]]?:'无'}</td>
            <td>{$item['add_time']|date="Y-m-d H:i",###}</td>
            <td>
                <a href="{:U('Order/info',['order_id'=>$item['order_id']])}" class="btn btn-success btn-xs" type="button">查看</a>
                <a href="{:U('Order/delete',['order_id'=>$item['order_id']])}" class="btn btn-danger btn-xs" type="button"
                    onclick="return confirm('确认删除？');">删除</a>
            </td>
        </tr>
        {/foreach}
    </tbody>
</table>
<div class="row page">
    <div class="col-sm-12 text-center">
        {$page}
    </div>
</div>
<script>
    $('.page a').click(function () {
        var p = $(this).data('p');
        if (!p) {
            return;
        }
        ajax_index(p);
    })
</script>